import React, { memo } from "react";
import { renderRoutes } from "react-router-config";
import NavigationWrap from "../../components/navigation";
import { Navigation } from "./style";

export default memo(function discover(props) {
  const { route } = props;
  return (
    <Navigation>
      <NavigationWrap />
      {renderRoutes(route.routes)}
    </Navigation>
  );
});
